package cn.hsw.platform.contants;

import cn.hsw.platform.core.base.BaseConstant;

/**
 * 系统管理常量
 * @author 李子木
 * @date 2020-10-28
 */
public class ManageConstant extends BaseConstant {

    /**
     * 权限类型
     * 1、菜单
     * 2、页面
     * 3、功能接口
     */
    public static final int PERMISSION_TYPE_MENU = 1;
    public static final int PERMISSION_TYPE_PAGE = 2;
    public static final int PERMISSION_TYPE_API = 3;

    /**
     * 菜单及页面是否显示
     * 1    显示
     * -1   不显示
     */
    public static final int PERMISSION_STATE_SHOW = 1;
    public static final int PERMISSION_STATE_NOT_SHOW = -1;

    /**
     * 基础角色编码
     * @ROLE_CODE_ADMIN 超级管理员
     * @ROLE_CODE_NORMAL 普通用户
     */
    @Deprecated
    public static final String ROLE_CODE_ADMIN = "admin";
    @Deprecated
    public static final String ROLE_CODE_NORMAL = "normal";
    @Deprecated
    public static final String USER_CACHE_PREFIX = "user:";
    @Deprecated
    public static final String USER_TOKEN_PREFIX = "user_token:";
    @Deprecated
    public static final String AUTH_ROLE_CODE_SET_PREFIX  = "auth_role_code:";
}
